package com.ecloud.client;

import com.ecloud.common.JsonResult;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;

/**
 * @author Squbi
 */
@FeignClient("trend-server")
public interface TrendClient {
    /**
     * 获取昨日数据
     *
     * @return List < TdbDaily>
     * @author Squbi
     * @date 2021/7/23 17:48
     */
    @GetMapping("/tdb/yesterday")
    JsonResult tdbYesterday();

    /**
     * 实时能量数据
     *
     * @return TdbPresentVo
     * @author Squbi
     * @date 2021/7/23 17:50
     */
    @GetMapping("/tdb/present/energy")
    JsonResult presentEnergy();

    /**
     * 实时控制数据
     *
     * @return TdbPresentVo
     * @author Squbi
     * @date 2021/7/26 14:16
     */
    @GetMapping("/tdb/present/control")
    JsonResult presentControl();

    /**
     * 实时环境数据
     *
     * @return TdbEnvironmentPresentResult
     * @author Squbi
     * @date 2021/7/26 14:16
     */
    @GetMapping("/tdb/present/environment")
    JsonResult presentEnvironment();
}
